const fs= require("fs");
const path=require("path");

let filePath=path.join(__dirname,"test.txt");
//同步代码
let fileContent=fs.readFileSync(filePath).toString()
console.log(fileContent)